import { createI18n } from 'vue-i18n'
import zhCN from '../locales/zh-CN'
import enUS from '../locales/en-US'
import idID from '../locales/id-ID'
import filPH from '../locales/fil-PH'

const i18n = createI18n({
  legacy: false, // 使用组合式API
  locale: 'zh', // 默认语言
  fallbackLocale: 'en', // 备用语言
  messages: {
    'zh': zhCN,
    'en': enUS,
    'id': idID,
    'fil': filPH,
  }
})

export default i18n 